<template>
  <div class="banner">
    <div class="banner-inner">
      <div class="carousel-item">
        <div class="carousel-title">{{ carouselItem.slogan }}</div>
        <div class="carousel-sub-title">{{ carouselItem.subSlogan }}</div>
        <img class="carousel-image" :src="carouselItem.image" />
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { useI18n } from 'vue-i18n';
import bannerImage from '@/assets/images/login-banner.png';
import { reactive } from 'vue';

export default {
  name: 'LoginBanner',
};
</script>

<script lang="ts" setup>


const { t } = useI18n();
const carouselItem = reactive({
  slogan: t('login.banner.slogan'),
  subSlogan: t('login.banner.subSlogan'),
  image: bannerImage,
})
</script>

<style lang="less" scoped>
.banner {
  display: flex;
  align-items: center;
  justify-content: center;

  &-inner {
    flex: 1;
    height: 100%;
  }
}

.carousel {
  height: 100%;

  &-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  &-title {
    color: var(--color-fill-1);
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
  }

  &-sub-title {
    margin-top: 8px;
    color: var(--color-text-3);
    font-size: 14px;
    line-height: 22px;
  }

  &-image {
    width: 320px;
    margin-top: 30px;
  }
}
</style>
